package com.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dao.IRetToolPtDao;
import com.model.Ret_tool_chk;
import com.model.Ret_tool_pt;
import com.model.Ret_tool_ptId;


@Repository
public class RetToolPtHibernateDao extends GenericHibernateDao<Ret_tool_pt, Ret_tool_ptId> 
	implements IRetToolPtDao{

	public List<Ret_tool_pt> getPortInfoByTool(String toolID) {
		String strHql = "from Ret_tool_pt where id.tool_id_fk = ? ";
		List<Ret_tool_pt> ret_tool_ptList = this.find(strHql, new String[]{toolID});
		return ret_tool_ptList;
	}
}
